<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<s:if test="#attr.configuration.useSecureServer == 'on'">
	<c:if test="${pageContext.request.secure != true}">
    	<% response.sendRedirect("https://" + request.getServerName()+":8443" + request.getAttribute("javax.servlet.forward.request_uri")); %>
   	</c:if>
</s:if>
<s:else>
	<c:if test="${pageContext.request.secure}">
    	<% response.sendRedirect("http://" + request.getServerName()+":8080" + request.getAttribute("javax.servlet.forward.request_uri")); %>
   	</c:if>
</s:else>